#pragma once


// CClrButton

class CClrButton : public CButton
{
	DECLARE_DYNAMIC(CClrButton)

public:
	CClrButton();
	virtual ~CClrButton();
	COLORREF m_TextClr ;
	UINT    m_nFlag;
	bool    m_bSelect;
	void	SetFlag(int nFlag){m_nFlag=nFlag;};
	void	SetCheck(bool bSel){m_bSelect=bSel;};
protected:
	DECLARE_MESSAGE_MAP()
protected:
	virtual DWORD OnDrawBackground(CDC* pDC, CRect* pRect);
	virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);

public:
	afx_msg void OnDrawItem(int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct);
	afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
};


